<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>uuQuery - style selector</title>
<style type="text/css">@import url(../README.css);</style>
<script type="text/javascript" src="../uuQuery.js"></script>
<script type="text/javascript" src="iterator.js"></script>
</head>
<body>
<script>
window.onload = function() {
  setTimeout(boot1000, 1000);
};

function boot1000() {
  uuQuery("div{ backgroundImage *= gif }").forEach(function(v) {
    v.style.backgroundRepeat = "no-repeat";
    v.style.backgroundPosition = "center";
    v.style.backgroundColor = "white";
    v.style.color = "green";
  });
  uuQuery("div{ backgroundRepeat ^= repeat }").forEach(function(v) {
    v.style.fontSize = "xx-large";
  });
  uuQuery("div{ backgroundImage $= png }").forEach(function(v) {
    v.style.backgroundRepeat = "no-repeat";
    v.style.backgroundPosition = "center";
    v.style.backgroundColor = "gray";
    v.style.color = "green";
  });
}
</script>
<ul>
<li>Computed style operator *=</li>
<li>Computed style operator ^=</li>
<li>Computed style operator $=</li>
</ul>
<div style="background: url(../img/c32.png) repeat-x">Google Chrome</div>
<div style="background: url(../img/s32.png) repeat-x">Safari</div>
<div style="background: url(../img/f32.png) repeat-x">Firefox</div>
<div style="background: url(../img/i32.png) repeat-x">IE</div>
<div style="background: url(../img/o32.png) repeat-x">Opera</div>
<div style="background: url(../img/check.png) repeat-x">Check</div>
<div style="background: url(../img/l16.gif) repeat-x">Anime gif</div>

<pre class="eg">
&lt;div style="background: url(../img/c32.png) repeat-x"&gt;Google Chrome&lt;/div&gt;
&lt;div style="background: url(../img/s32.png) repeat-x"&gt;Safari&lt;/div&gt;
&lt;div style="background: url(../img/f32.png) repeat-x"&gt;Firefox&lt;/div&gt;
&lt;div style="background: url(../img/i32.png) repeat-x"&gt;IE&lt;/div&gt;
&lt;div style="background: url(../img/o32.png) repeat-x"&gt;Opera&lt;/div&gt;
&lt;div style="background: url(../img/check.png) repeat-x"&gt;Check&lt;/div&gt;
&lt;div style="background: url(../img/l16.gif) repeat-x"&gt;Anime gif&lt;/div&gt;

function boot1000() {
  uuQuery("div{ backgroundImage <b>*=</b> gif }").forEach(function(v) {
    v.style.backgroundRepeat = "no-repeat";
    v.style.backgroundPosition = "center";
    v.style.backgroundColor = "white";
    v.style.color = "green";
  });
  uuQuery("div{ backgroundRepeat <b>^=</b> repeat }").forEach(function(v) {
    v.style.fontSize = "xx-large";
  });
  uuQuery("div{ backgroundImage <b>$=</b> png }").forEach(function(v) {
    v.style.backgroundRepeat = "no-repeat";
    v.style.backgroundPosition = "center";
    v.style.backgroundColor = "gray";
    v.style.color = "green";
  });
}
</pre>

</body>
</html>